<?php

/**
 * PluginNews form.
 *
 * @package    ##PROJECT_NAME##
 * @subpackage form
 * @author     ##AUTHOR_NAME##
 * @version    SVN: $Id: sfDoctrineFormPluginTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
abstract class PluginNewsForm extends BaseNewsForm
{
	public function configure()
	{
		unset(
		  $this['created_at'],
		  $this['updated_at']
		);

    $this->widgetSchema['date_on'] = new jckJQueryWidgetDateField(array(
        /*'minDate' => '-10',
        'maxDate' => '+10'*/
    ));
    $this->widgetSchema['date_off'] = new jckJQueryWidgetDateField();
    $this->widgetSchema['keywords'] = new sfWidgetFormTextarea();
    $this->widgetSchema['summary'] = new sfWidgetFormTextarea();
    $this->widgetSchema['content'] = new jckWidgetFormCKEditor(array(
        'toolbar' => 'jck_toolbar_normal',
        'browser_profil' => 'news'
    ));

	}
}
